﻿Imports System
Imports System.Globalization
Imports System.Resources
Imports System.Workflow.Activities
Imports System.Workflow.ComponentModel
Imports System.Workflow.Runtime.Tracking

Friend NotInheritable Class SR
    ' Methods
    Friend Sub New()
    End Sub

    Friend Shared Function GetError_BlackBoxCustomStateNotSupported() As String
        Return SR.GetString("Error_BlackBoxCustomStateNotSupported", New Object() { GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_CannotExecuteStateMachineWithoutInitialState() As String
        Return SR.GetString("Error_CannotExecuteStateMachineWithoutInitialState", New Object() { GetType(StateMachineWorkflowActivity).Name, "InitialStateName" })
    End Function

    Friend Shared Function GetError_CantRemoveEventDrivenFromExecutingState(ByVal eventDrivenName As String, ByVal parentStateName As String) As String
        Return SR.GetString("Error_CantRemoveEventDrivenFromExecutingState", New Object() { GetType(EventDrivenActivity).Name, eventDrivenName, GetType(StateActivity).Name, parentStateName })
    End Function

    Friend Shared Function GetError_CantRemoveState(ByVal stateName As String) As String
        Return SR.GetString("Error_CantRemoveState", New Object() { GetType(StateActivity).Name, stateName })
    End Function

    Friend Shared Function GetError_CompletedStateMustPointToALeafNodeState() As String
        Return SR.GetString("Error_SetStateMustPointToALeafNodeState", New Object() { "CompletedStateName", GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_CompletedStateMustPointToAState() As String
        Return SR.GetString("Error_SetStateMustPointToAState", New Object() { "CompletedStateName", GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_EventActivityNotValidInStateFinalization() As String
        Return SR.GetString("Error_EventActivityNotValidInStateHandler", New Object() { GetType(StateFinalizationActivity).Name, GetType(IEventActivity).FullName })
    End Function

    Friend Shared Function GetError_EventActivityNotValidInStateInitialization() As String
        Return SR.GetString("Error_EventActivityNotValidInStateHandler", New Object() { GetType(StateInitializationActivity).Name, GetType(IEventActivity).FullName })
    End Function

    Friend Shared Function GetError_EventDrivenInvalidFirstActivity() As String
        Return SR.GetString("Error_EventDrivenInvalidFirstActivity", New Object() { GetType(EventDrivenActivity).Name, GetType(IEventActivity).FullName, GetType(HandleExternalEventActivity).Name, GetType(DelayActivity).Name })
    End Function

    Friend Shared Function GetError_EventDrivenParentNotListen() As String
        Return SR.GetString("Error_EventDrivenParentNotListen", New Object() { GetType(EventDrivenActivity).Name, GetType(ListenActivity).Name, GetType(EventHandlersActivity).Name, GetType(StateActivity).Name, GetType(StateMachineWorkflowActivity).Name })
    End Function

    Friend Shared Function GetError_InitialStateMustBeDifferentThanCompletedState() As String
        Return SR.GetString("Error_InitialStateMustBeDifferentThanCompletedState", New Object() { StateMachineWorkflowActivity.InitialStateNameProperty, StateMachineWorkflowActivity.CompletedStateNameProperty })
    End Function

    Friend Shared Function GetError_InitialStateMustPointToALeafNodeState() As String
        Return SR.GetString("Error_SetStateMustPointToALeafNodeState", New Object() { StateMachineWorkflowActivity.InitialStateNameProperty, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_InitialStateMustPointToAState() As String
        Return SR.GetString("Error_SetStateMustPointToAState", New Object() { "InitialStateName", GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_InvalidCompositeStateChild() As String
        Return SR.GetString("Error_InvalidCompositeStateChild", New Object() { GetType(StateMachineWorkflowActivity).Name, GetType(StateActivity).Name, GetType(EventDrivenActivity).Name })
    End Function

    Friend Shared Function GetError_InvalidLeafStateChild() As String
        Return SR.GetString("Error_InvalidLeafStateChild", New Object() { GetType(StateActivity).Name, GetType(EventDrivenActivity).Name, GetType(StateInitializationActivity).Name, GetType(StateFinalizationActivity).Name })
    End Function

    Friend Shared Function GetError_InvalidStateActivityParent() As String
        Return SR.GetString("Error_InvalidStateActivityParent", New Object() { GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_InvalidTargetStateInStateInitialization() As String
        Return SR.GetString("Error_InvalidTargetStateInStateInitialization", New Object() { GetType(SetStateActivity).Name, "TargetStateName", GetType(StateActivity).Name, GetType(StateInitializationActivity).Name })
    End Function

    Friend Shared Function GetError_MultipleStateFinalizationActivities() As String
        Return SR.GetString("Error_MultipleStateHandlerActivities", New Object() { GetType(StateFinalizationActivity).Name, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_MultipleStateInitializationActivities() As String
        Return SR.GetString("Error_MultipleStateHandlerActivities", New Object() { GetType(StateInitializationActivity).Name, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_SetStateMustPointToALeafNodeState() As String
        Return SR.GetString("Error_SetStateMustPointToALeafNodeState", New Object() { SetStateActivity.TargetStateNameProperty, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_SetStateMustPointToAState() As String
        Return SR.GetString("Error_SetStateMustPointToAState", New Object() { SetStateActivity.TargetStateNameProperty, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_SetStateOnlyWorksOnStateMachineWorkflow() As String
        Return SR.GetString("Error_SetStateOnlyWorksOnStateMachineWorkflow", New Object() { GetType(SetStateActivity).Name, GetType(EventDrivenActivity).Name, GetType(StateInitializationActivity).Name, GetType(StateMachineWorkflowActivity).Name, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_StateActivityMustBeContainedInAStateMachine() As String
        Return SR.GetString("Error_StateActivityMustBeContainedInAStateMachine", New Object() { GetType(StateActivity).Name, GetType(StateMachineWorkflowActivity).Name, "InitialStateName" })
    End Function

    Friend Shared Function GetError_StateFinalizationParentNotState() As String
        Return SR.GetString("Error_StateHandlerParentNotState", New Object() { GetType(StateFinalizationActivity).Name, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_StateInitializationParentNotState() As String
        Return SR.GetString("Error_StateHandlerParentNotState", New Object() { GetType(StateInitializationActivity).Name, GetType(StateActivity).Name })
    End Function

    Friend Shared Function GetError_StateMachineWorkflowMustBeARootActivity() As String
        Return SR.GetString("Error_StateMachineWorkflowMustBeARootActivity", New Object() { GetType(StateMachineWorkflowActivity).Name })
    End Function

    Friend Shared Function GetInvalidActivityStatus(ByVal activity As Activity) As String
        Return SR.GetString("InvalidActivityStatus", New Object() { activity.ExecutionStatus, activity.QualifiedName })
    End Function

    Friend Shared Function GetInvalidSetStateInStateInitialization() As String
        Return SR.GetString("InvalidSetStateInStateInitialization", New Object() { GetType(SetStateActivity).Name, GetType(StateInitializationActivity).Name })
    End Function

    Friend Shared Function GetInvalidStateMachineAction(ByVal stateName As String) As String
        Return SR.GetString("InvalidStateMachineAction", New Object() { GetType(StateActivity).Name, GetType(StateMachineAction).Name, stateName })
    End Function

    Friend Shared Function GetInvalidStateTransitionPath() As String
        Return SR.GetString("InvalidStateTransitionPath")
    End Function

    Friend Shared Function GetInvalidUserDataInStateChangeTrackingRecord() As String
        Return SR.GetString("InvalidUserDataInStateChangeTrackingRecord", New Object() { "StateActivity.StateChange", GetType(StateActivity).Name })
    End Function

    Private Shared Function GetLoader() As SR
        If (SR.loader Is Nothing) Then
            SR.loader = New SR
        End If
        Return SR.loader
    End Function

    Friend Shared Function GetMoveSetState() As String
        Return SR.GetString("MoveSetState", New Object() { GetType(SetStateActivity).Name })
    End Function

    Friend Shared Function GetSqlTrackingServiceRequired() As String
        Return SR.GetString("SqlTrackingServiceRequired", New Object() { "StateHistory", GetType(SqlTrackingService).FullName })
    End Function

    Friend Shared Function GetStateAlreadySubscribesToThisEvent(ByVal stateName As String, ByVal queueName As IComparable) As String
        Return SR.GetString("StateAlreadySubscribesToThisEvent", New Object() { GetType(StateActivity).Name, stateName, queueName })
    End Function

    Friend Shared Function GetStateMachineWorkflowMustHaveACurrentState() As String
        Return SR.GetString("StateMachineWorkflowMustHaveACurrentState", New Object() { GetType(StateMachineWorkflowActivity).Name })
    End Function

    Friend Shared Function GetStateMachineWorkflowRequired() As String
        Return SR.GetString("StateMachineWorkflowRequired", New Object() { GetType(StateMachineWorkflowInstance).Name, GetType(StateMachineWorkflowActivity).Name })
    End Function

    Friend Shared Function GetString(ByVal name As String) As String
        Return SR.GetString(SR.Culture, name)
    End Function

    Friend Shared Function GetString(ByVal culture As CultureInfo, ByVal name As String) As String
        Dim loader As SR = SR.GetLoader
        If (loader Is Nothing) Then
            Return Nothing
        End If
        Return loader.resources.GetString(name, culture)
    End Function

    Friend Shared Function GetString(ByVal name As String, ByVal ParamArray args As Object()) As String
        Return SR.GetString(SR.Culture, name, args)
    End Function

    Friend Shared Function GetString(ByVal culture As CultureInfo, ByVal name As String, ByVal ParamArray args As Object()) As String
        Dim loader As SR = SR.GetLoader
        If (loader Is Nothing) Then
            Return Nothing
        End If
        Dim format As String = loader.resources.GetString(name, culture)
        If ((Not args Is Nothing) AndAlso (args.Length > 0)) Then
            Return String.Format(CultureInfo.CurrentCulture, format, args)
        End If
        Return format
    End Function

    Friend Shared Function GetUnableToTransitionToState(ByVal stateName As String) As String
        Return SR.GetString("UnableToTransitionToState", New Object() { stateName })
    End Function

    Friend Shared Function GetUndoSetAsCompletedState(ByVal stateName As String) As String
        Return SR.GetString("UndoSetAsCompletedState", New Object() { stateName })
    End Function

    Friend Shared Function GetUndoSetAsInitialState(ByVal stateName As String) As String
        Return SR.GetString("UndoSetAsInitialState", New Object() { stateName })
    End Function


    ' Properties
    Private Shared ReadOnly Property Culture As CultureInfo
        Get
            Return Nothing
        End Get
    End Property

    Friend Shared ReadOnly Property Error_SenderMustBeActivityExecutionContext As String
        Get
            Return SR.GetString("Error_SenderMustBeActivityExecutionContext", New Object() { GetType(ActivityExecutionContext).FullName })
        End Get
    End Property


    ' Fields
    Friend Const ActivationDescr As String = "ActivationDescr"
    Friend Const Activity As String = "Activity"
    Friend Const Base As String = "Base"
    Friend Const CallExternalMethodActivityDescription As String = "CallExternalMethodActivityDescription"
    Friend Const ChangingVariable As String = "ChangingVariable"
    Friend Const CodeActivityDescription As String = "CodeActivityDescription"
    Friend Const CodeConditionDisplayName As String = "CodeConditionDisplayName"
    Friend Const CompensatableSequenceActivityDescription As String = "CompensatableSequenceActivityDescription"
    Friend Const CompletedStateDescription As String = "CompletedStateDescription"
    Friend Const CompletedStateImagePathDescription As String = "CompletedStateImagePathDescription"
    Friend Const ConditionalActivityDescription As String = "ConditionalActivityDescription"
    Friend Const ConditionDescr As String = "ConditionDescr"
    Friend Const ConditionedActivityConditions As String = "ConditionedActivityConditions"
    Friend Const Conditions As String = "Conditions"
    Friend Const ConnectorColorDescription As String = "ConnectorColorDescription"
    Friend Const ConstrainedGroupActivityDescription As String = "ConstrainedGroupActivityDescription"
    Friend Const CorrelationSet As String = "CorrelationSet"
    Friend Const CorrelationSetDescr As String = "CorrelationSetDescr"
    Friend Const DelayActivityDescription As String = "DelayActivityDescription"
    Friend Const DynamicUpdateConditionDescr As String = "DynamicUpdateConditionDescr"
    Friend Const Error_ActivationActivityInsideLoop As String = "Error_ActivationActivityInsideLoop"
    Friend Const Error_ActivationActivityNotFirst As String = "Error_ActivationActivityNotFirst"
    Private Const Error_BlackBoxCustomStateNotSupported As String = "Error_BlackBoxCustomStateNotSupported"
    Friend Const Error_CAGChildNotFound As String = "Error_CAGChildNotFound"
    Friend Const Error_CAGDynamicUpdateNotAllowed As String = "Error_CAGDynamicUpdateNotAllowed"
    Friend Const Error_CAGNotExecuting As String = "Error_CAGNotExecuting"
    Friend Const Error_CAGQuiet As String = "Error_CAGQuiet"
    Friend Const Error_CallExternalMethodArgsSerializationException As String = "Error_CallExternalMethodArgsSerializationException"
    Friend Const Error_CanNotChangeAtRuntime As String = "Error_CanNotChangeAtRuntime"
    Friend Const Error_CannotConnectToRequest As String = "Error_CannotConnectToRequest"
    Private Const Error_CannotExecuteStateMachineWithoutInitialState As String = "Error_CannotExecuteStateMachineWithoutInitialState"
    Friend Const Error_CannotNestThisActivity As String = "Error_CannotNestThisActivity"
    Friend Const Error_CannotResolveWebServiceInput As String = "Error_CannotResolveWebServiceInput"
    Friend Const Error_CantInvokeDesignTimeTypes As String = "Error_CantInvokeDesignTimeTypes"
    Friend Const Error_CantInvokeSelf As String = "Error_CantInvokeSelf"
    Private Const Error_CantRemoveEventDrivenFromExecutingState As String = "Error_CantRemoveEventDrivenFromExecutingState"
    Private Const Error_CantRemoveState As String = "Error_CantRemoveState"
    Friend Const Error_CompletedStateCannotContainActivities As String = "Error_CompletedStateCannotContainActivities"
    Friend Const Error_ConditionalBranchParentNotConditional As String = "Error_ConditionalBranchParentNotConditional"
    Friend Const Error_ConditionalBranchUpdateAtRuntime As String = "Error_ConditionalBranchUpdateAtRuntime"
    Friend Const Error_ConditionalDeclNotAllConditionalBranchDecl As String = "Error_ConditionalDeclNotAllConditionalBranchDecl"
    Friend Const Error_ConditionalLessThanOneChildren As String = "Error_ConditionalLessThanOneChildren"
    Friend Const Error_ConfigurationSectionNotFound As String = "Error_ConfigurationSectionNotFound"
    Friend Const Error_ContextStackItemMissing As String = "Error_ContextStackItemMissing"
    Friend Const Error_CorrelationAttributeInvalid As String = "Error_CorrelationAttributeInvalid"
    Friend Const Error_CorrelationInitializerNotDefinied As String = "Error_CorrelationInitializerNotDefinied"
    Friend Const Error_CorrelationInvalid As String = "Error_CorrelationInvalid"
    Friend Const Error_CorrelationNotInitialized As String = "Error_CorrelationNotInitialized"
    Friend Const Error_CorrelationParameterException As String = "Error_CorrelationParameterException"
    Friend Const Error_CorrelationParameterNotFound As String = "Error_CorrelationParameterNotFound"
    Friend Const Error_CorrelationTokenInReplicator As String = "Error_CorrelationTokenInReplicator"
    Friend Const Error_CorrelationTokenMissing As String = "Error_CorrelationTokenMissing"
    Friend Const Error_CorrelationTokenSpecifiedForUncorrelatedInterface As String = "Error_CorrelationTokenSpecifiedForUncorrelatedInterface"
    Friend Const Error_CorrelationTypeNotConsistent As String = "Error_CorrelationTypeNotConsistent"
    Friend Const Error_CorrelationViolationException As String = "Error_CorrelationViolationException"
    Friend Const Error_DuplicateCorrelation As String = "Error_DuplicateCorrelation"
    Friend Const Error_DuplicateCorrelationAttribute As String = "Error_DuplicateCorrelationAttribute"
    Friend Const Error_DuplicatedActivityID As String = "Error_DuplicatedActivityID"
    Friend Const Error_DuplicateParameter As String = "Error_DuplicateParameter"
    Friend Const Error_DuplicateWebServiceFaultFound As String = "Error_DuplicateWebServiceFaultFound"
    Friend Const Error_DuplicateWebServiceResponseFound As String = "Error_DuplicateWebServiceResponseFound"
    Friend Const Error_DynamicActivity As String = "Error_DynamicActivity"
    Friend Const Error_DynamicActivity2 As String = "Error_DynamicActivity2"
    Friend Const Error_DynamicActivity3 As String = "Error_DynamicActivity3"
    Friend Const Error_EventActivityIsImmutable As String = "Error_EventActivityIsImmutable"
    Private Const Error_EventActivityNotValidInStateHandler As String = "Error_EventActivityNotValidInStateHandler"
    Friend Const Error_EventArgumentSerializationException As String = "Error_EventArgumentSerializationException"
    Friend Const Error_EventArgumentValidationException As String = "Error_EventArgumentValidationException"
    Friend Const Error_EventDeliveryFailedException As String = "Error_EventDeliveryFailedException"
    Private Const Error_EventDrivenInvalidFirstActivity As String = "Error_EventDrivenInvalidFirstActivity"
    Friend Const Error_EventDrivenMultipleEventActivity As String = "Error_EventDrivenMultipleEventActivity"
    Friend Const Error_EventDrivenNoFirstActivity As String = "Error_EventDrivenNoFirstActivity"
    Private Const Error_EventDrivenParentNotListen As String = "Error_EventDrivenParentNotListen"
    Friend Const Error_EventHandlersChildNotFound As String = "Error_EventHandlersChildNotFound"
    Friend Const Error_EventHandlersDeclParentNotScope As String = "Error_EventHandlersDeclParentNotScope"
    Friend Const Error_EventNameMissing As String = "Error_EventNameMissing"
    Friend Const Error_ExecInAtomicScope As String = "Error_ExecInAtomicScope"
    Friend Const Error_ExecWithActivationReceive As String = "Error_ExecWithActivationReceive"
    Friend Const Error_ExternalDataExchangeException As String = "Error_ExternalDataExchangeException"
    Friend Const Error_ExternalDataExchangeServiceExists As String = "Error_ExternalDataExchangeServiceExists"
    Friend Const Error_ExternalRuntimeContainerNotFound As String = "Error_ExternalRuntimeContainerNotFound"
    Friend Const Error_FailedToStartTheWorkflow As String = "Error_FailedToStartTheWorkflow"
    Friend Const Error_FieldNotExists As String = "Error_FieldNotExists"
    Friend Const Error_GeneratorShouldContainSingleActivity As String = "Error_GeneratorShouldContainSingleActivity"
    Friend Const Error_GenericMethodsNotSupported As String = "Error_GenericMethodsNotSupported"
    Friend Const Error_GetCalleeWorkflow As String = "Error_GetCalleeWorkflow"
    Friend Const Error_InitializerFollowerInTxnlScope As String = "Error_InitializerFollowerInTxnlScope"
    Friend Const Error_InitializerInReplicator As String = "Error_InitializerInReplicator"
    Private Const Error_InitialStateMustBeDifferentThanCompletedState As String = "Error_InitialStateMustBeDifferentThanCompletedState"
    Friend Const Error_InsufficientArrayPassedIn As String = "Error_InsufficientArrayPassedIn"
    Friend Const Error_InterfaceTypeNeedsExternalDataExchangeAttribute As String = "Error_InterfaceTypeNeedsExternalDataExchangeAttribute"
    Friend Const Error_InterfaceTypeNotInterface As String = "Error_InterfaceTypeNotInterface"
    Friend Const Error_InvalidCAGActivityType As String = "Error_InvalidCAGActivityType"
    Private Const Error_InvalidCompositeStateChild As String = "Error_InvalidCompositeStateChild"
    Friend Const Error_InvalidEventArgsSignature As String = "Error_InvalidEventArgsSignature"
    Friend Const Error_InvalidEventMessage As String = "Error_InvalidEventMessage"
    Friend Const Error_InvalidEventPropertyName As String = "Error_InvalidEventPropertyName"
    Friend Const Error_InvalidIdentifier As String = "Error_InvalidIdentifier"
    Friend Const Error_InvalidLanguageIdentifier As String = "Error_InvalidLanguageIdentifier"
    Private Const Error_InvalidLeafStateChild As String = "Error_InvalidLeafStateChild"
    Friend Const Error_InvalidLocalServiceMessage As String = "Error_InvalidLocalServiceMessage"
    Friend Const Error_InvalidMethodPropertyName As String = "Error_InvalidMethodPropertyName"
    Private Const Error_InvalidStateActivityParent As String = "Error_InvalidStateActivityParent"
    Private Const Error_InvalidTargetStateInStateInitialization As String = "Error_InvalidTargetStateInStateInitialization"
    Friend Const Error_ListenLessThanTwoChildren As String = "Error_ListenLessThanTwoChildren"
    Friend Const Error_ListenNotAllEventDriven As String = "Error_ListenNotAllEventDriven"
    Friend Const Error_MethodNotExists As String = "Error_MethodNotExists"
    Friend Const Error_MisMatchCorrelationTokenOwnerNameProperty As String = "Error_MisMatchCorrelationTokenOwnerNameProperty"
    Friend Const Error_MissingConditionName As String = "Error_MissingConditionName"
    Friend Const Error_MissingCorrelationParameterAttribute As String = "Error_MissingCorrelationParameterAttribute"
    Friend Const Error_MissingCorrelationTokenOwnerNameProperty As String = "Error_MissingCorrelationTokenOwnerNameProperty"
    Friend Const Error_MissingCorrelationTokenProperty As String = "Error_MissingCorrelationTokenProperty"
    Friend Const Error_MissingEventName As String = "Error_MissingEventName"
    Friend Const Error_MissingInterfaceType As String = "Error_MissingInterfaceType"
    Friend Const Error_MissingMethodName As String = "Error_MissingMethodName"
    Friend Const Error_MissingRuleConditions As String = "Error_MissingRuleConditions"
    Friend Const Error_MissingValidationProperty As String = "Error_MissingValidationProperty"
    Friend Const Error_MoreThanOneEventHandlersDecl As String = "Error_MoreThanOneEventHandlersDecl"
    Friend Const Error_MoreThanTwoActivitiesInEventHandlingScope As String = "Error_MoreThanTwoActivitiesInEventHandlingScope"
    Friend Const Error_MultiDimensionalArray As String = "Error_MultiDimensionalArray"
    Private Const Error_MultipleStateHandlerActivities As String = "Error_MultipleStateHandlerActivities"
    Friend Const Error_MustHaveParent As String = "Error_MustHaveParent"
    Friend Const Error_NegativeValue As String = "Error_NegativeValue"
    Friend Const Error_NestedConstrainedGroupConditions As String = "Error_NestedConstrainedGroupConditions"
    Friend Const Error_NoInstanceInSession As String = "Error_NoInstanceInSession"
    Friend Const Error_NoMatchingActiveDirectoryEntry As String = "Error_NoMatchingActiveDirectoryEntry"
    Friend Const Error_OutRefParameterNotSupported As String = "Error_OutRefParameterNotSupported"
    Friend Const Error_OwnerActivityIsNotParent As String = "Error_OwnerActivityIsNotParent"
    Friend Const Error_ParallelLessThanTwoChildren As String = "Error_ParallelLessThanTwoChildren"
    Friend Const Error_ParallelNotAllSequence As String = "Error_ParallelNotAllSequence"
    Friend Const Error_ParameterNotFound As String = "Error_ParameterNotFound"
    Friend Const Error_ParameterPropertyNotSet As String = "Error_ParameterPropertyNotSet"
    Friend Const Error_ParameterTypeNotFound As String = "Error_ParameterTypeNotFound"
    Friend Const Error_ParameterTypeResolution As String = "Error_ParameterTypeResolution"
    Friend Const Error_PropertyNotSet As String = "Error_PropertyNotSet"
    Friend Const Error_ReplicatorCannotCancelChild As String = "Error_ReplicatorCannotCancelChild"
    Friend Const Error_ReplicatorChildRunning As String = "Error_ReplicatorChildRunning"
    Friend Const Error_ReplicatorDisconnected As String = "Error_ReplicatorDisconnected"
    Friend Const Error_ReplicatorInvalidExecutionType As String = "Error_ReplicatorInvalidExecutionType"
    Friend Const Error_ReplicatorNotExecuting As String = "Error_ReplicatorNotExecuting"
    Friend Const Error_ReplicatorNotInitialized As String = "Error_ReplicatorNotInitialized"
    Friend Const Error_ReturnTypeNotFound As String = "Error_ReturnTypeNotFound"
    Friend Const Error_ReturnTypeNotVoid As String = "Error_ReturnTypeNotVoid"
    Friend Const Error_RoleProviderNotAvailableOrEnabled As String = "Error_RoleProviderNotAvailableOrEnabled"
    Friend Const Error_ServiceMissingExternalDataExchangeInterface As String = "Error_ServiceMissingExternalDataExchangeInterface"
    Friend Const Error_ServiceNotFound As String = "Error_ServiceNotFound"
    Private Const Error_SetStateMustPointToALeafNodeState As String = "Error_SetStateMustPointToALeafNodeState"
    Private Const Error_SetStateMustPointToAState As String = "Error_SetStateMustPointToAState"
    Private Const Error_SetStateOnlyWorksOnStateMachineWorkflow As String = "Error_SetStateOnlyWorksOnStateMachineWorkflow"
    Private Const Error_StateActivityMustBeContainedInAStateMachine As String = "Error_StateActivityMustBeContainedInAStateMachine"
    Friend Const Error_StateChildNotFound As String = "Error_StateChildNotFound"
    Private Const Error_StateHandlerParentNotState As String = "Error_StateHandlerParentNotState"
    Private Const Error_StateMachineWorkflowMustBeARootActivity As String = "Error_StateMachineWorkflowMustBeARootActivity"
    Friend Const Error_TypeIsNotRootActivity As String = "Error_TypeIsNotRootActivity"
    Friend Const Error_TypeNotExist As String = "Error_TypeNotExist"
    Friend Const Error_TypeNotPublic As String = "Error_TypeNotPublic"
    Friend Const Error_TypeNotPublicSerializable As String = "Error_TypeNotPublicSerializable"
    Friend Const Error_TypeNotResolved As String = "Error_TypeNotResolved"
    Friend Const Error_TypePropertyInvalid As String = "Error_TypePropertyInvalid"
    Friend Const Error_UnexpectedArgumentType As String = "Error_UnexpectedArgumentType"
    Friend Const Error_UninitializedCorrelation As String = "Error_UninitializedCorrelation"
    Friend Const Error_UnknownConfigurationParameter As String = "Error_UnknownConfigurationParameter"
    Friend Const Error_WebServiceFaultNotNeeded As String = "Error_WebServiceFaultNotNeeded"
    Friend Const Error_WebServiceInputNotProcessed As String = "Error_WebServiceInputNotProcessed"
    Friend Const Error_WebServiceReceiveNotConfigured As String = "Error_WebServiceReceiveNotConfigured"
    Friend Const Error_WebServiceReceiveNotFound As String = "Error_WebServiceReceiveNotFound"
    Friend Const Error_WebServiceReceiveNotMarkedActivate As String = "Error_WebServiceReceiveNotMarkedActivate"
    Friend Const Error_WebServiceReceiveNotValid As String = "Error_WebServiceReceiveNotValid"
    Friend Const Error_WebServiceResponseNotFound As String = "Error_WebServiceResponseNotFound"
    Friend Const Error_WebServiceResponseNotNeeded As String = "Error_WebServiceResponseNotNeeded"
    Friend Const Error_WhileShouldHaveOneChild As String = "Error_WhileShouldHaveOneChild"
    Friend Const Error_WorkflowCompleted As String = "Error_WorkflowCompleted"
    Friend Const Error_WorkflowInstanceDehydratedBeforeSendingResponse As String = "Error_InstanceDehydratedBeforeSendingResponse"
    Friend Const Error_WorkflowTerminated As String = "Error_WorkflowTerminated"
    Friend Const EventDrivenActivityDescription As String = "EventDrivenActivityDescription"
    Friend Const EventHandlingScopeActivityDescription As String = "EventHandlingScopeActivityDescription"
    Friend Const EventInfoMissing As String = "EventInfoMissing"
    Friend Const EventNameMissing As String = "EventNameMissing"
    Friend Const EventSink As String = "EventSink"
    Friend Const ExecutionTypeDescr As String = "ExecutionTypeDescr"
    Friend Const ExpressionDescr As String = "ExpressionDescr"
    Friend Const ExternalEventNameDescr As String = "ExternalEventNameDescr"
    Friend Const ExternalMethodNameDescr As String = "ExternalMethodNameDescr"
    Friend Const FilterDescription_InvokeWorkflow As String = "FilterDescription_InvokeWorkflow"
    Friend Const ForegroundCategory As String = "ForegroundCategory"
    Friend Const General_MissingService As String = "General_MissingService"
    Friend Const HandleExternalEventActivityDescription As String = "HandleExternalEventActivityDescription"
    Friend Const Handlers As String = "Handlers"
    Friend Const HelperExternalDataExchangeDesc As String = "HelperExternalDataExchangeDesc"
    Friend Const [In] As String = "In"
    Friend Const InitialChildDataDescr As String = "InitialChildDataDescr"
    Friend Const InitializeCaleeDescr As String = "InitializeCaleeDescr"
    Friend Const InitialStateDescription As String = "InitialStateDescription"
    Friend Const InitialStateImagePathDescription As String = "InitialStateImagePathDescription"
    Friend Const InterfaceTypeDescription As String = "InterfaceTypeDescription"
    Friend Const InterfaceTypeFilterDescription As String = "InterfaceTypeFilterDescription"
    Friend Const InterfaceTypeMissing As String = "InterfaceTypeMissing"
    Private Const InvalidActivityStatus As String = "InvalidActivityStatus"
    Private Const InvalidSetStateInStateInitialization As String = "InvalidSetStateInStateInitialization"
    Private Const InvalidStateMachineAction As String = "InvalidStateMachineAction"
    Private Const InvalidStateTransitionPath As String = "InvalidStateTransitionPath"
    Friend Const InvalidTimespanFormat As String = "InvalidTimespanFormat"
    Private Const InvalidUserDataInStateChangeTrackingRecord As String = "InvalidUserDataInStateChangeTrackingRecord"
    Friend Const InvokeParameterDescription As String = "InvokeParameterDescription"
    Friend Const InvokeWebServiceActivityDescription As String = "InvokeWebServiceActivityDescription"
    Friend Const InvokeWorkflowActivityDescription As String = "InvokeWorkflowActivityDescription"
    Friend Const ListenActivityDescription As String = "ListenActivityDescription"
    Private Shared loader As SR
    Friend Const MethodInfoMissing As String = "MethodInfoMissing"
    Friend Const MethodNameDescr As String = "MethodNameDescr"
    Friend Const MethodNameMissing As String = "MethodNameMissing"
    Private Const MoveSetState As String = "MoveSetState"
    Friend Const NameDescr As String = "NameDescr"
    Friend Const OnAfterMethodInvokeDescr As String = "OnAfterMethodInvokeDescr"
    Friend Const OnAfterReceiveDescr As String = "OnAfterReceiveDescr"
    Friend Const OnBeforeFaultingDescr As String = "OnBeforeFaultingDescr"
    Friend Const OnBeforeMethodInvokeDescr As String = "OnBeforeMethodInvokeDescr"
    Friend Const OnBeforeResponseDescr As String = "OnBeforeResponseDescr"
    Friend Const OnCompletedDescr As String = "OnCompletedDescr"
    Friend Const OnGeneratorChildCompletedDescr As String = "OnGeneratorChildCompletedDescr"
    Friend Const OnGeneratorChildInitializedDescr As String = "OnGeneratorChildInitializedDescr"
    Friend Const OnInitializedDescr As String = "OnInitializedDescr"
    Friend Const [Optional] As String = "Optional"
    Friend Const Out As String = "Out"
    Friend Const ParallelActivityDescription As String = "ParallelActivityDescription"
    Friend Const ParameterDescription As String = "ParameterDescription"
    Friend Const Parameters As String = "Parameters"
    Friend Const PolicyActivityDescription As String = "PolicyActivityDescription"
    Friend Const Properties As String = "Properties"
    Friend Const ProxyClassDescr As String = "ProxyClassDescr"
    Friend Const ReceiveActivityNameDescription As String = "ReceiveActivityNameDescription"
    Friend Const Ref As String = "Ref"
    Friend Const ReplicatorActivityDescription As String = "ReplicatorActivityDescription"
    Friend Const ReplicatorUntilConditionDescr As String = "ReplicatorUntilConditionDescr"
    Friend Const Required As String = "Required"
    Private resources As ResourceManager = New ResourceManager("System.Workflow.Activities.StringResources", Assembly.GetExecutingAssembly)
    Friend Const RoleDescr As String = "RoleDescr"
    Friend Const RuleConditionDisplayName As String = "RuleConditionDisplayName"
    Friend Const RuleSetDefinitionDescription As String = "RuleSetDefinitionDescription"
    Friend Const RuleSetDescription As String = "RuleSetDescription"
    Friend Const ScopeActivityDescription As String = "ScopeActivityDescription"
    Friend Const SequenceActivityDescription As String = "SequenceActivityDescription"
    Friend Const SequentialWorkflow As String = "SequentialWorkflow"
    Friend Const SetStateActivityDescription As String = "SetStateActivityDescription"
    Friend Const ShowingExternalDataExchangeService As String = "ShowingExternalDataExchangeService"
    Private Const SqlTrackingServiceRequired As String = "SqlTrackingServiceRequired"
    Friend Const Standard As String = "Standard"
    Friend Const StateActivityDescription As String = "StateActivityDescription"
    Private Const StateAlreadySubscribesToThisEvent As String = "StateAlreadySubscribesToThisEvent"
    Friend Const StateFinalizationActivityDescription As String = "StateFinalizationActivityDescription"
    Friend Const StateInitializationActivityDescription As String = "StateInitializationActivityDescription"
    Friend Const StateMachineWorkflow As String = "StateMachineWorkflow"
    Friend Const StateMachineWorkflowActivityDescription As String = "StateMachineWorkflowActivityDescription"
    Private Const StateMachineWorkflowMustHaveACurrentState As String = "StateMachineWorkflowMustHaveACurrentState"
    Friend Const StateMachineWorkflowRequired As String = "StateMachineWorkflowRequired"
    Friend Const TargetStateDescription As String = "TargetStateDescription"
    Friend Const TargetWorkflowDescr As String = "TargetWorkflowDescr"
    Friend Const TimeoutDurationDescription As String = "TimeoutDurationDescription"
    Friend Const TimeoutInitializerDescription As String = "TimeoutInitializerDescription"
    Friend Const Type As String = "Type"
    Friend Const TypeDescr As String = "TypeDescr"
    Private Const UnableToTransitionToState As String = "UnableToTransitionToState"
    Private Const UndoSetAsCompletedState As String = "UndoSetAsCompletedState"
    Private Const UndoSetAsInitialState As String = "UndoSetAsInitialState"
    Friend Const UndoSwitchViews As String = "UndoSwitchViews"
    Friend Const UntilConditionDescr As String = "UntilConditionDescr"
    Friend Const URLDescr As String = "URLDescr"
    Friend Const UserCodeHandlerDescr As String = "UserCodeHandlerDescr"
    Friend Const Warning_AdditionalBindingsFound As String = "Warning_AdditionalBindingsFound"
    Friend Const WebServiceFaultActivityDescription As String = "WebServiceFaultActivityDescription"
    Friend Const WebServiceMethodDescription As String = "WebServiceMethodDescription"
    Friend Const WebServiceReceiveActivityDescription As String = "WebServiceReceiveActivityDescription"
    Friend Const WebServiceResponseActivityDescription As String = "WebServiceResponseActivityDescription"
    Friend Const WebServiceSessionIDDescr As String = "WebServiceSessionIDDescr"
    Friend Const WhenConditionDescr As String = "WhenConditionDescr"
    Friend Const WhileActivityDescription As String = "WhileActivityDescription"
    Friend Const WhileConditionDescr As String = "WhileConditionDescr"
    Friend Const WorkflowAuthorizationException As String = "WorkflowAuthorizationException"
End Class


